<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">

            <thead>
            <tr>
                <td class="text-center" width="65px;">序号</td>
<!--                <td class="text-center">角色</td>-->
                <td class="text-center">头像</td>
                <td class="text-center">备注</td>
                <td class="text-center">昵称</td>
                <td class="text-center">手机号码</td>
                <td class="text-center">会员等级</td>
                <td class="text-center">用户余额</td>
                <td class="text-center">用户积分</td>
<!--                <td class="text-center">用户状态</td>-->
                <td class="text-center">注册时间</td>
                <td class="text-center">操作</td>
            </tr>
            </thead>

            <tbody>
            <volist name="list" id="list">
                <tr>

                    <td class="text-center">{$list.userId}</td>

<!--                        <td class="text-center">-->
<!--                            <if condition="$list.role == 1">管理员-->
<!--                                <elseif condition="$list.role == 2"/>销售-->
<!--                                <else />会员-->
<!--                            </if>-->
<!--                        </td>-->
                    <td class="text-center"><img src="{$list.avatarUrl}" width="50px" height="50px"/></td>
                    <td class="text-center">{$list.notes}</td>
                    <td class="text-center">{$list.nickName}</td>
                    <td class="text-center">{$list.userMobile}</td>
                    <td class="text-center">{$list.gradeName}</td>
                    <td class="text-center">{$list.userBalance}</td>
                    <td class="text-center">{$list.userIntegral}</td>
<!--                    <td class="text-center">-->
<!--                        <img width="20" height="20" src="__PUBLIC__/images/<if condition='$list.userStatus eq 1'>yes.png<else />cancel.png</if>" onclick="changeTableVal('user','userId','{$list.userId}','userStatus',this)"/>-->
<!--                    </td>-->
                    <td class="text-center">{:date('Y-m-d', $list.addTime)}</td>
                    <td class="text-center">
<!--                        <a href="javascript:;" onclick="layerAlert('绑定角色', '{:U('user/bindRoleAdd', array('userId' => $list.userId))}', '70%', '85%')" class="btn btn-success" title="绑定角色">绑定角色</a>-->
                        <a href="javascript:;" onclick="layerAlert('绑定销售', '{:U('user/saleAdd', array('userId' => $list.userId))}', '70%', '85%')" class="btn btn-success" title="绑定销售">绑定销售</a>

                        <a href="javascript:;" style="margin:0" onclick="layerAlert('查看会员', '{:U('user/userEdit', array('userId' => $list.userId))}', '70%', '85%')" class="btn btn-primary" title="查看会员">查看</a>

                        <a href="javascript:;" onclick="layerAlert('增减余额', '{:U('user/userBalanceAdd', array('userId' => $list.userId))}', '70%', '85%')" class="btn btn-success" title="增减余额">增减余额</a>

                        <a href="javascript:;" onclick="layerAlert('增减积分', '{:U('user/userIntegralAdd', array('userId' => $list.userId))}', '70%', '85%')" class="btn btn-success" title="增减积分">增减积分</a>

                        <a href="javascript:;" onclick="layerAlert('发放优惠券', '{:U('user/sendDiscounts', array('userId' => $list.userId))}', '70%', '85%')" class="btn btn-warning" title="发放优惠券">发放优惠券</a>
                        <a href="javascript:;" onclick="layerAlert('发放抵扣券', '{:U('user/grantVoucher', array('userId' => $list.userId))}', '70%', '85%')" class="btn btn-warning" title="发放抵扣券">发放抵扣券</a>
                        <a href="javascript:;" onclick="layerAlert('会员等级设置', '{:U('user/userGradeEdit', array('userId' => $list.userId))}', '70%', '85%')" class="btn btn-info" title="会员等级设置">等级设置</a>
                        <a href="javascript:;" onclick="layerAlert('成绩录入', '{:U('user/rankAdd', array('userId' => $list.userId))}', '70%', '85%')" class="btn btn-default" title="成绩录入">成绩录入</a>
                        <a href="javascript:;" onclick="layerAlert('备注', '{:U('user/notesAdd', array('userId' => $list.userId))}', '70%', '85%')" class="btn btn-default" title="备注">备注</a>



                        <a href="javascript:;" onclick="delfunc(this)" data-url="{:url('user/userDel')}" data-id="{$list.userId}"  class="btn btn-danger" title="拉黑"><i class="fa fa-trash-o"></i></a>
                    </td>
                </tr>
            </volist>

            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left"></div>
    <div class="col-sm-9 text-right">{$page}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination  a").click(function(){
        cur_page = $(this).data('p');
        ajax_get_table('search-form', cur_page);
    });

</script>